<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/aui.css">
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>

    <title>推广链接</title>
    <style>
        section{
            background: #08020e url("img/share_bg.jpg")no-repeat center;
            background-size: 100% 85%;
        }
    </style>
</head>
<body>
<header>
    <a href="my.html" class="f1 head-back"></a>
    <div class="f8">推广链接</div>
    <div class="f1"></div>
</header>
<section class="flex ">

    <div class="col-8 auto center ">
        <div class="col-5 auto bg-white pad-1 mar-b-3 mar-t-5">
            <img id="ewm" class="col-10" src="" alt="">
        </div>

        <p id="copylink" class="pad-1-2 bg-white border-radius-1 ellipsis">

        </p>
        <div class="pad-t-b-5">
            <span id="copy" class="pad-2-3 bg-blue border-radius-1 color-white" onclick="getcopy()">复制链接</span>
            <a href="mylower.html" class="pad-2-3 bg-yellow border-radius-1 color-white">查看直推会员</a>
        </div>
    </div>
</section>


<!--mask-->
<div class="mask none"></div>
<div id="notice" class="mask-box bg-white border-radius-1 hidden none">
    <p class="bg-blue pad-2 right">
        <span class="fl color-white">提示信息</span>
        <span class="close"> </span>
    </p>
    <div class="pad-3">
        <div class="pad-3 bg-gray-l flex">
            <span class="radio active mar-r-2"></span>
            复制成功
        </div>
    </div>
</div>
<script type="text/javascript" src="js/init.js"></script>
<script src="js/foot.js"></script>
<script>
    var data;
    new AjaxRequest({
        type: 'post',
        dataType: 'json',
        url: hostUrl + 'index/Qrcode/index',
        data: data,
        callback: res => {
            if(res.status == 1){
                $("#ewm").attr('src',hostUrl+res.data.qrurl);
                $("#copylink").text(res.data.url);
            }
        }
    });


    $(".close").click(function () {
        $(".mask").hide();
        $(".mask-box").hide();
    });


</script>

</body>
</html>